using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace WeberTimeTracker.Models
{
    public class Time
    {
       // private DateTime defaultDate = DateTime.Now;
        
        public int Time_ID { get; set; }
        public int User_ID { get; set; }
        public int Project_ID { get; set; }
        public decimal Hours { get; set; }
//        [DisplayFormat(DataFormatString = "{0:d}", ApplyFormatInEditMode = true)]
//        [RegularExpression(@"^(([0]\d|[1][0-2])\/([0-2]\d|[3][0-1])\/[2][0]\d{2})$", ErrorMessage = "Please enter MM/DD/YYYY format.")]
        public DateTime Date { get; set; } // { get { return defaultDate; } set { value = defaultDate; } }
        public string Description { get; set; }
        public bool Paid { get; set; }
		public bool Invoiced { get; set; } 
        public virtual Project Project { get; set; }
        public virtual User User { get; set; }
    }
}
